package vip.mtdp.asset.core.dal.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author Evans.wang
 * @since 2023/10/28 20:50
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_account")
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户类型：集中（CA）/专户(SA)
     */
    private String type;

    private Long vaultId;
    private String chain;
    /**
     * 账户编号，专户=地址数据，集中=自定义数据
     */
    private String no;
    private String name;
    private Integer state;
    private Integer level;
    private String label;
    //private String h;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
